
var path = require('path');
var gulp = require('gulp');
var less = require('gulp-less');
var minifyCSS = require('gulp-minify-css');
var LessPluginCleanCSS = require('less-plugin-clean-css');
var cleancss = new LessPluginCleanCSS({
    advanced: true
});


gulp.task('less', function() {
    return gulp.src('./style.less')
        .pipe(less({
            plugins: [cleancss],
            paths: [path.join(__dirname, 'less', 'includes')]
        }))
        .pipe(minifyCSS())
        .pipe(gulp.dest(''));
});

gulp.task('watch', function() {
    gulp.watch('*.less', ['less']);
});